import request from '@/utils/request'

export function editPermissionRecord(data) {
  return request({
    url: '/authcenter/sys-role-permission/edit',
    method: 'put',
    data
  })
}

export function findAppRecord(roleId) {
    return request({
      url: '/authcenter/sys-role-permission/findAppList',
      method: 'get',
      params: {roleId: roleId}
    })
}

export function findInterfaceRecord(roleId) {
    return request({
      url: '/authcenter/sys-role-permission/findInterfaceList',
      method: 'get',
      params: {roleId: roleId}
    })
}

export function findMenuRecord(roleId) {
    return request({
      url: '/authcenter/sys-role-permission/findMenuList',
      method: 'get',
      params: {roleId: roleId}
    })
}

